package com.open.capacity.common.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author YangGang
 * @Title: 活动实体类
 * @Description: TODO
 * @date 2021/6/25/9:49
 */
@ApiModel("活动实体类")
@Data
public class ActivityModel extends BaseModel {
    @ApiModelProperty("活动id")
    private Integer actiid;
    @ApiModelProperty("商家id")
    private Integer bussid;
    @ApiModelProperty("减免金额")
    private Float reduce;
    @DateTimeFormat(pattern = "yyyy-MM-dd") //入参
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") //出参
    @ApiModelProperty("创建时间")
    private Date crtime;
    @ApiModelProperty("修改时间")
    private Date uptime;
    @ApiModelProperty("活动详情")
    private String remark;
    @ApiModelProperty("活动状态")
    private Integer enable;
    @ApiModelProperty("活动分类")
    private Integer aclass;
    @ApiModelProperty("当前页码")
    private Integer page;
    @ApiModelProperty("每页条数")
    private Integer limit;
}
